package com.dragons.dragonsvf.controller.minio;

/**
 * @author Dragons.G
 * @date 2025-08-03 11:14:55
 * @description 图片信息实体类（用于封装图片详情，替代Map更直观）
 */

import java.time.ZonedDateTime;
import java.util.Date;

/**
 * 图片信息实体类（用于封装图片详情，替代Map更直观）
 */
public class ImageInfo {
    private String bucketName; // 存储桶名称
    private String fileName;       // 文件名（含路径）
    private long fileSize;         // 文件大小（字节）
    private ZonedDateTime lastModified;     // 最后修改时间
    private String contentType;    // 内容类型（如image/png）
    private boolean isDirectory;   // 是否为目录
    private String etag;           // 文件唯一标识

    private Integer pageSize; // 每页多少条
    private Integer currentPage; // 当前第几页

    // 构造方法
//    public ImageInfo(String fileName, long fileSize, Date lastModified, String contentType, boolean isDirectory, String etag) {
//        this.fileName = fileName;
//        this.fileSize = fileSize;
//        this.lastModified = lastModified;
//        this.contentType = contentType;
//        this.isDirectory = isDirectory;
//        this.etag = etag;
//    }


    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public ZonedDateTime getLastModified() {
        return lastModified;
    }

    public void setLastModified(ZonedDateTime lastModified) {
        this.lastModified = lastModified;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public boolean isDirectory() {
        return isDirectory;
    }

    public void setDirectory(boolean directory) {
        isDirectory = directory;
    }

    public String getEtag() {
        return etag;
    }

    public void setEtag(String etag) {
        this.etag = etag;
    }
}
